home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINWORDS / WINE02BX.ZIP / LISP / MODES / OLD-CXX-.ELC < prev    next >
Text File  |  1993-03-28  |  16KB  |  163 lines

  1. ;;; compiled by @win386 on Sat Mar 13 14:32:29 1993
  2. ;;; from file c:/src/lucid-19.4/lisp/modes/old-cxx-.el
  3. ;;; emacs version 19.3 Lucid.
  4. ;;; bytecomp version 2.08; 27-aug-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (defvar c++-mode-abbrev-table nil "\
  14. Abbrev table in use in C++-mode buffers.")
  15. (define-abbrev-table 'c++-mode-abbrev-table nil)
  16. (defvar c++-mode-map nil "\
  17. Keymap used in C++ mode.")
  18. (byte-code "¼▌┴ ┬├─#ê┬┼╞#ê┬╟╞#ê┬╚╔#ê┬╩╦#ê┬╠═#ê┬╬╧#ê┬╨╤#ê┬╥╙#ê┬╘╒#ê┬╓╫#ê┬╪┘#ê┬┌█#ê┬▄▌#ê┬▐▀#ê┴ç" [c++-mode-map make-sparse-keymap define-key "\n" reindent-then-newline-and-indent "{" electric-c++-brace "}" ";" electric-c++-semi "" mark-c++-function "" indent-c++-exp "" backward-delete-char-untabify "    " c++-indent-command "    " c++-insert-header "" c++-macroize-region "" c++-comment-region "" c++-uncomment-region "" c++-beginning-of-defun "" c++-end-of-defun "" c++-indent-defun] 4)
  19. (defvar c++-mode-syntax-table nil "\
  20. Syntax table in use in C++-mode buffers.")
  21. (byte-code "¼û┴\n!├─┼#ê├╞╟#ê├╚╔#ê┴ç" [c++-mode-syntax-table copy-syntax-table c-mode-syntax-table modify-syntax-entry 47 ". 12" 10 ">" 39 "."] 4)
  22. (defvar c++-continued-member-init-offset nil "\
  23. *Extra indent for continuation lines of member inits; NIL means to align
  24. with previous initializations rather than with the colon on the first line.")
  25. (defvar c++-member-init-indent 0 "\
  26. *Indentation level of member initializations in function declarations.")
  27. (defvar c++-friend-offset -4 "\
  28. *Offset of C++ friend class declarations relative to member declarations.")
  29. (defvar c++-electric-colon t "\
  30. *If t, colon is an electric terminator.")
  31. (defvar c++-empty-arglist-indent nil "\
  32. *Indicates how far to indent an line following an empty argument
  33. list.  Nil indicates to just after the paren.")
  34. (fset 'c++-mode #[nil "└ ê┴\n!ê├ !ê┼╞!ê╟╔\n╦╠╬╨╥╘┼╪!┘PLê┼█!Lê┼▄!▌Lê┼▐!▌Lê┼▀!αLêßΓ!ê#¡àΣ\nσµ#ç" [kill-all-local-variables use-local-map c++-mode-map set-syntax-table c++-mode-syntax-table make-local-variable indent-line-function c++-mode major-mode "C++" mode-name c++-indent-line "// " comment-start "" comment-end 32 comment-column "/\\*+ *\\|// *" comment-start-skip c++-comment-indent comment-indent-hook c++-mode-abbrev-table local-abbrev-table paragraph-start "^$\\|" page-delimiter paragraph-separate paragraph-ignore-fill-prefix t require-final-newline parse-sexp-ignore-comments nil run-hooks c++-mode-hook c++-electric-colon define-key ":" electric-c++-terminator] 4 "\
  35. Major mode for editing C++ code.  Very much like editing C code.
  36. Expression and list commands understand all C++ brackets.
  37. Tab at left margin indents for C++ code
  38. Comments are delimited with /* ... */ {or with // ... <newline>}
  39. Paragraphs are separated by blank lines only.
  40. Delete converts tabs to spaces as it moves back.
  41. \\{c++-mode-map}
  42. Variables controlling indentation style:
  43.  c-tab-always-indent
  44.     Non-nil means TAB in C mode should always reindent the current line,
  45.     regardless of where in the line point is when the TAB command is used.
  46.     Default is t.
  47.  c-auto-newline
  48.     Non-nil means automatically newline before and after braces,
  49.     and after colons and semicolons, inserted in C code.
  50.  c-indent-level
  51.     Indentation of C statements within surrounding block.
  52.     The surrounding block's indentation is the indentation
  53.     of the line on which the open-brace appears.
  54.  c-continued-statement-offset
  55.     Extra indentation given to a substatement, such as the
  56.     then-clause of an if or body of a while.
  57.  c-continued-brace-offset
  58.     Extra indentation given to a brace that starts a substatement.
  59.     This is in addition to c-continued-statement-offset.
  60.  c-brace-offset
  61.     Extra indentation for line if it starts with an open brace.
  62.  c-brace-imaginary-offset
  63.     An open brace following other text is treated as if it were
  64.     this far to the right of the start of its line.
  65.  c-argdecl-indent
  66.     Indentation level of declarations of C function arguments.
  67.  c-label-offset
  68.     Extra indentation for line that is a label, or case or ``default:'', or
  69.     ``public:'' or ``private:'', or ``protected:''.
  70.  c++-electric-colon
  71.     If non-nil at invocation of c++-mode (t is the default) colon electricly
  72.     indents.
  73.  c++-empty-arglist-indent
  74.     If non-nil, a function declaration or invocation which ends a line with a
  75.     left paren is indented this many extra spaces, instead of flush with the
  76.     left paren.
  77.  c++-friend-offset
  78.     Offset of C++ friend class declarations relative to member declarations.
  79.  c++-member-init-indent
  80.     Indentation level of member initializations in function declarations,
  81.     if they are on a separate line beginning with a colon.
  82.  c++-continued-member-init-offset
  83.     Extra indentation for continuation lines of member initializations; NIL
  84.     means to align with previous initializations rather than with the colon.
  85.  
  86. Settings for K&R, BSD, and Stroustrup indentation styles are
  87.   c-indent-level                5    8    4
  88.   c-continued-statement-offset  5    8    4
  89.   c-continued-brace-offset                0
  90.   c-brace-offset               -5   -8    0
  91.   c-brace-imaginary-offset                0
  92.   c-argdecl-indent              0    8    4
  93.   c-label-offset               -5   -8   -4
  94.   c++-empty-arglist-indent                4
  95.   c++-friend-offset                       0
  96.  
  97. Turning on C++ mode calls the value of the variable c++-mode-hook with
  98. no args,if that value is non-nil." nil])
  99. (fset 'c++-comment-indent #[nil "└┴!½é┬çè├─xêi┬U½â┬¬éiT`╞yê╟╔#½ç┬öbêi¬é\n)])ç" [looking-at "^\\(/\\*\\|//\\)" 0 "     " nil cur-pt -1 re-search-forward comment-start-skip t comment-column] 5])
  100. (fset 'electric-c++-brace #[(arg) "└\n¼╢l½│è├└xên)¼ë ½º┼ ê╞ êcê┼ ê ½è╞ ê`╚Z┼ êè    ½ä    Tbê╔╩!ê)    ½îè    bê╦╠\n!!)¬à╦╠\n!!)ç" [nil insertpos arg "     " c-auto-newline c++-indent-line newline last-command-char 2 delete-char -1 self-insert-command prefix-numeric-value] 3 "\
  101. Insert character and correct line's indentation." "P"])
  102. (fset 'electric-c++-semi #[(arg) "½ä┴\n!ç├─\n!!ç" [c-auto-newline electric-c++-terminator arg self-insert-command prefix-numeric-value] 3 "\
  103. Insert character and correct line's indentation." "P"])
  104. (fset 'electric-c++-terminator #[(arg) "└` ¼√l½°è─yê┼└wêg╞U«╜╚=½¥╔╩!¼ÿè╦vê┼└wê`    W)½èè╦ê╔╠!)«Ü═ ê╬`    \"╨8«è╤8«ä╥8))¼½cê╙ ê½ô╒ ¼Å╓ ë`S└ôê╫ ê╪ êè\n½ä\nTbê┘┌!ê)\n½îè\nbê█▄ !!)¬à█▄ !!*ç" [nil end insertpos arg 0 "     " 35 last-command-char 58 looking-at "case[     ]" 1 ":" beginning-of-defun parse-partial-sexp pps 3 4 5 c++-indent-line c-auto-newline c-inside-parens-p make-marker newline c-indent-line delete-char -1 self-insert-command prefix-numeric-value] 4 "\
  105. Insert character and correct line's indentation." "P"])
  106. (fset 'c++-indent-command #[(&optional whole-exp) "½¡┴ ┬ëè½â╟yê`╚╔!ê` bê╔yê`) V¡å╩ ╦$+ç¼îè╠┬xên)¼â═ ç┴ ç" [whole-exp c++-indent-line nil end beg shift-amt c-tab-always-indent 0 forward-sexp 1 indent-code-rigidly "#" "     " insert-tab] 5 "\
  107. Indent current line as C++ code, or in some cases insert a tab character.
  108. If c-tab-always-indent is non-nil (the default), always indent current line.
  109. Otherwise, indent the current line only if point is at the left margin
  110. or in the line's indentation; otherwise insert a tab.
  111.  
  112. A numeric argument, regardless of its value,
  113. means indent rigidly all the lines of the expression starting after point
  114. so that this line becomes properly indented.
  115. The relative indentation among the lines of the expression are preserved." "P"])
  116. (fset 'c++-indent-line #[nil "└┴!┴ëëd`Z╟yê`┴=½ç╚ é▒╔=½ç╩ é▒╦╠!½à╟¬∙═┴wê<½à@╦╬!½ë\\¬▌╦╨!¼É╦╤!½ûè╥╙!ê╦╘!)½ï╙\\]¬╜╦╒!½É╦╓!¼ïè╫ ê╚ )¬¿╦╪!½ë\\¬Üg┌U½ëZ¬îg▄U½ç\\═┴wêiZë╟U½Äd\nZ`V½¢d\nZbê¬ö`|êjêd\nZ`V½àd\nZbê -ç" [calculate-c++-indent nil pos case-fold-search shift-amt beg indent 0 current-indentation t calculate-c-indent-within-comment looking-at "[     ]*#" "     " "\\(default\\|public\\|private\\|protected\\):" c-label-offset "case\\b" "[A-Za-z]" forward-sexp 1 ":[